@echo off
set binDir=%~dp0

rd /S/Q %binDir%\cs
mkdir %binDir%\cs

cd %binDir%\proto
for %%i in (*.proto) do (
     %binDir%\bin\protoc %%i --csharp_out=%binDir%\cs
)
cd ../

pause